package demo;

import org.apache.commons.jci.ReloadingClassLoader;
import org.apache.commons.jci.listeners.ReloadingListener;
import org.apache.commons.jci.monitor.FilesystemAlterationMonitor;

public class Demo {
    public static void main(String[] args) {

        ReloadingClassLoader classLoader = new ReloadingClassLoader(Thread.currentThread().getClass().getClassLoader());
        
        ReloadingListener listener = new ReloadingListener();
        
        listener.addReloadNotificationListener(classLoader);
        
        FilesystemAlterationMonitor fam = new FilesystemAlterationMonitor();
        
        
        System.out.println(classLoader.getParent());
    }
}
